
#ifndef REMOTE_CONTROL_H
#define REMOTE_CONTROL_H

#include "bsp_rc.h"

#define SBUS_RX_BUF_NUM 36u

#define RC_FRAME_LENGTH 25u

typedef __packed struct
{
    
  int32_t ch[18];
    
} SBUS_ctrl_t;

void sbus_to_rc(volatile const uint8_t *sbus_buf, SBUS_ctrl_t *sbus_ctrl);

extern void remote_control_init(void);

extern const SBUS_ctrl_t *get_remote_control_point(void);

#endif
